package com.gitee.ricesugar.exception;

import javax.swing.*;

public class ErrorException extends RuntimeException{
    public ErrorException(String message) {
        super(message);
        JOptionPane.showMessageDialog(null, message, "错误", JOptionPane.ERROR_MESSAGE);
    }
}